package reservation;

import java.util.ArrayList;
import java.util.Date;

import fr.irit.smac.may.lib.components.messaging.receiver.AgentRef;

/**
 * Classe Plage Horaire. Ici est represente une plage horaire, ce qu'elle contient
 * A quoi elle ressemble...
 * @author Ben
 *
 */
public class PlageHoraire {
	int id;
	private Date dateDeb;
	private Date dateFin;
	AgentRef proprio;
	
	public AgentRef getProprio() {
		return proprio;
	}
	
	public void setProprio(AgentRef proprio) {
		this.proprio = proprio;
	}
	
	public int getId() {
		return id;
	}
	
	public Date getDateDeb() {
		return dateDeb;
	}
	
	public Date getDateFin() {
		return dateFin;
	}
	//A implementer
	public ArrayList<Integer> getListInscrit() {
		return null;
	}
	/**
	 * 
	 * @param id
	 * @param dateDeb
	 * @param dateFin
	 */
	public PlageHoraire(int id, Date dateDeb, Date dateFin) {
		this.id = id;
		this.dateDeb = dateDeb;
		this.dateFin = dateFin;
		this.proprio = null;
	}
	
	public PlageHoraire(int id) {
		this.proprio = null;
	}
	
	public void setDateDeb(Date ddeb) {
		this.dateDeb = ddeb;
	}
	
	public void setDateFin(Date dfin) {
		this.dateFin = dfin;
	}
	
	@SuppressWarnings("deprecation")
	public String toString() {
		return "De "+dateDeb.getDate()+"/"+dateDeb.getMonth()+"/"+dateDeb.getYear()+" "+dateDeb.getHours()+":"+dateDeb.getMinutes()+" a "+dateFin.getDate()+"/"+dateFin.getMonth()+"/"+dateFin.getYear()+" "+dateFin.getHours()+":"+dateFin.getMinutes();
	}
	
}
